package com.jack.orderDemo;

import java.util.Arrays;

public class Order {
    private Goods[] goods;


    //一个订单只有一个唯一的用户
    private User user;

    @Override
    public String toString() {
        return "Order{" +
                "goods=" + Arrays.toString(goods) +
                ", user=" + user +
                '}';
    }

    public Goods[] getGoods() {
        return goods;
    }

    public void setGoods(Goods[] goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
